Skip to content

feat(string): add strCapitalizeWords with docs and tests#528

Merged
nev21 merged 3 commits intomainfrom
nev21/strConvert
Mar 19, 2026
Merged

feat(string): add strCapitalizeWords with docs and tests#528
nev21 merged 3 commits intomainfrom
nev21/strConvert

Conversation

@nev21
Copy link
Contributor

@nev21 nev21 commented Mar 19, 2026

  • add strCapitalizeWords to string conversion helpers export strCapitalizeWords from the public index
  • add comprehensive conversion tests, including comparisons vs strLetterCase and strCamelCase behavior
  • update usage docs and README utility listings with new examples and conversion notes

@nev21 nev21 added this to the 0.14.0 milestone Mar 19, 2026
@nev21 nev21 requested a review from a team as a code owner March 19, 2026 03:29
Copilot AI review requested due to automatic review settings March 19, 2026 03:29
@nev21 nev21 requested a review from a team as a code owner March 19, 2026 03:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new string conversion helper, strCapitalizeWords, and wires it into the public exports and documentation, alongside updating tests and bundle-size thresholds to account for the added functionality.

Changes:

  • Added strCapitalizeWords() implementation with TSDoc in lib/src/string/conversion.ts.
  • Exported strCapitalizeWords from the public entrypoint and added/expanded conversion tests.
  • Updated usage docs/README and adjusted bundle-size check limits.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
lib/src/string/conversion.ts Adds the new strCapitalizeWords() conversion helper and documentation.
lib/src/index.ts Exports strCapitalizeWords from the library public API.
lib/test/src/common/string/conversion.test.ts Adds tests validating strCapitalizeWords behavior and contrasts vs other converters.
lib/test/bundle-size-check.js Relaxes gzipped UMD size thresholds to accommodate the new helper.
docs/usage-guide.md Updates usage examples and notes to include strCapitalizeWords.
docs/feature-backlog.md Removes strCapitalizeWords (and related entry) from the backlog now that it’s implemented.
README.md Updates feature list and utility listings/links to include strCapitalizeWords.

- add strCapitalizeWords to string conversion helpers
export strCapitalizeWords from the public index
- add comprehensive conversion tests, including comparisons vs strLetterCase and strCamelCase behavior
- update usage docs and README utility listings with new examples and conversion notes
@nev21 nev21 force-pushed the nev21/strConvert branch from 7be9aff to 60abd08 Compare March 19, 2026 03:52
@nev21 nev21 requested a review from Copilot March 19, 2026 03:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new string conversion helper (strCapitalizeWords) to @nevware21/ts-utils, exposing it publicly and documenting/testing its behavior alongside existing conversion utilities.

Changes:

  • Added strCapitalizeWords() implementation to the string conversion helpers and exported it from the public index.
  • Expanded conversion test coverage to include strCapitalizeWords and explicit behavior comparisons vs strLetterCase / strCamelCase.
  • Updated docs/README listings and examples to include the new helper.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
lib/src/string/conversion.ts Introduces strCapitalizeWords() and its TSDoc next to existing conversion helpers.
lib/src/index.ts Exports strCapitalizeWords from the public entrypoint.
lib/test/src/common/string/conversion.test.ts Adds comprehensive tests for strCapitalizeWords, including comparisons to related helpers.
docs/usage-guide.md Updates usage examples/import list to include strCapitalizeWords and clarifies conversion differences.
README.md Updates feature list + utility matrix to include strCapitalizeWords.
docs/feature-backlog.md Removes strCapitalizeWords from “proposed” items now that it’s implemented.
lib/test/bundle-size-check.js Raises gzipped bundle size thresholds for es5/es6 min bundles.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@nev21 nev21 requested a review from Copilot March 19, 2026 04:05
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new string conversion helper (strCapitalizeWords) to @nevware21/ts-utils, exposing it publicly and documenting/testing its behavior alongside existing case conversion utilities.

Changes:

  • Introduce strCapitalizeWords() in lib/src/string/conversion.ts and export it from the public index.
  • Expand common string conversion tests to cover strCapitalizeWords and compare behavior vs strLetterCase / strCamelCase.
  • Update documentation (usage guide, README listings) and adjust bundle size thresholds.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
lib/src/string/conversion.ts Adds strCapitalizeWords() implementation and TSDoc; includes a small doc edit in strCamelCase comment.
lib/src/index.ts Exports strCapitalizeWords from the public package surface.
lib/test/src/common/string/conversion.test.ts Adds test coverage for strCapitalizeWords and behavioral comparisons.
lib/test/bundle-size-check.js Raises gzipped bundle size limits for ES5/ES6 min builds.
docs/usage-guide.md Adds import/example and clarifies conversion behavior differences.
docs/feature-backlog.md Removes implemented items from one backlog section.
README.md Updates feature list and utilities matrix to include strCapitalizeWords.

@codecov
Copy link

codecov bot commented Mar 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.81%. Comparing base (b8fed19) to head (03b8df0).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #528   +/-   ##
=======================================
  Coverage   98.81%   98.81%           
=======================================
  Files         136      136           
  Lines        3969     3973    +4     
  Branches      847      848    +1     
=======================================
+ Hits         3922     3926    +4     
  Misses         47       47           
Files with missing lines Coverage Δ
lib/src/string/conversion.ts 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@nev21 nev21 enabled auto-merge (squash) March 19, 2026 04:12
Copy link
Contributor

@nevware21-bot nevware21-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by nevware21-bot

@nev21 nev21 merged commit 4f3d60a into main Mar 19, 2026
10 checks passed
@nev21 nev21 deleted the nev21/strConvert branch March 19, 2026 04:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants